import './assets/main.css'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'

import { createApp } from 'vue'
import { createPinia } from 'pinia'

import App from './App.vue'
import 'animate.css'
import router from './router'
//svg插件需要的配置代码
import 'virtual:svg-icons-register'
import SvgIcon from '@/components/icon/SvgIcon.vue'

const app = createApp(App)
app.component('SvgIcon', SvgIcon)
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}

app.use(createPinia())
app.use(router)

app.mount('#app')
